package bat.ke.qq.com.tx.config;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ConfigLog {

    @Around("execution(* bat.ke.qq.com.tx.service.*.*(..))")
    public void printLog(ProceedingJoinPoint joinPoint) throws Throwable{

        System.out.println(joinPoint.getSignature()+"-----方法调用前");
        joinPoint.proceed();
        System.out.println(joinPoint.getSignature()+"-----方法调用后");
    }
}
